package com.gpStudy.design.proxy.staticProxy;

public class UserProxy implements Iuser{

    private Iuser iuser;

    public UserProxy(Iuser iuser) {
        this.iuser = iuser;
    }

    @Override
    public void say() {
        this.before();
        iuser.say();
        this.after();
    }

    public void before(){
        System.out.println("userProxy 前置方法");
    }

    public void after(){
        System.out.println("userProxy 后置方法");
    }


}
